package com.liangsui.mss.controller.erp;

import com.liangsui.mss.dto.InventoryLogDto;
import com.liangsui.mss.service.InventoryLogService;
import com.liangsui.mss.vo.AjaxResult;
import com.liangsui.mss.vo.DataGridView;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * InventoryLogController
 *
 * @author zhangjiawei
 * @email 1533167396@qq.com
 * @date 2022/12/6 14:36
 */
@RestController
@RequestMapping("erp/inventoryLog")
public class InventoryLogController {

    @DubboReference
    private InventoryLogService inventoryLogService;

    /**
     * 分页查询
     */
    @GetMapping("listInventoryLogForPage")
    public AjaxResult listInventoryLogForPage(InventoryLogDto inventoryLogDto){
        DataGridView gridView = this.inventoryLogService.listInventoryLogPage(inventoryLogDto);
        return AjaxResult.success("查询成功",gridView.getData(),gridView.getTotal());
    }
}
